package com.example.apache_shiro.service;

import com.example.apache_shiro.entity.User;
import com.example.apache_shiro.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserService {
    @Resource
    UserMapper userMapper;
    /**
     * 登录
     * @param username
     * @return
     */
    public List<User> queryUserByName(String  username){
        return userMapper.queryUserByName(username);
    }
}
